package com.yuyou.tas.service.api.admin.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 
 */
public class AuthUserSchool implements Serializable {
    /**
     * 业务主键
     */
    private Long id;

    /**
     * 组织主键
     */
    private Long authOrganizationId;

    /**
     * 用户主键
     */
    private Long authUser;

    /**
     * 科目
     */
    private Long baseSchoolId;

    /**
     * 创建时间
     */
    private Date createTime;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getAuthOrganizationId() {
        return authOrganizationId;
    }

    public void setAuthOrganizationId(Long authOrganizationId) {
        this.authOrganizationId = authOrganizationId;
    }

    public Long getAuthUser() {
        return authUser;
    }

    public void setAuthUser(Long authUser) {
        this.authUser = authUser;
    }

    public Long getBaseSchoolId() {
        return baseSchoolId;
    }

    public void setBaseSchoolId(Long baseSchoolId) {
        this.baseSchoolId = baseSchoolId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        AuthUserSchool other = (AuthUserSchool) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getAuthOrganizationId() == null ? other.getAuthOrganizationId() == null : this.getAuthOrganizationId().equals(other.getAuthOrganizationId()))
            && (this.getAuthUser() == null ? other.getAuthUser() == null : this.getAuthUser().equals(other.getAuthUser()))
            && (this.getBaseSchoolId() == null ? other.getBaseSchoolId() == null : this.getBaseSchoolId().equals(other.getBaseSchoolId()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getAuthOrganizationId() == null) ? 0 : getAuthOrganizationId().hashCode());
        result = prime * result + ((getAuthUser() == null) ? 0 : getAuthUser().hashCode());
        result = prime * result + ((getBaseSchoolId() == null) ? 0 : getBaseSchoolId().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", authOrganizationId=").append(authOrganizationId);
        sb.append(", authUser=").append(authUser);
        sb.append(", baseSchoolId=").append(baseSchoolId);
        sb.append(", createTime=").append(createTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}